﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.redshift
{
	// Token: 0x0200010B RID: 267
	public class TRedshiftCreateGroup : TCustomSqlStatement
	{
		// Token: 0x1700018A RID: 394
		// (get) Token: 0x060008C4 RID: 2244 RVA: 0x00302764 File Offset: 0x00300964
		// (set) Token: 0x060008C5 RID: 2245 RVA: 0x0030276C File Offset: 0x0030096C
		public virtual TObjectName GroupName
		{
			get
			{
				return this.groupName;
			}
			set
			{
				this.groupName = value;
			}
		}

		// Token: 0x1700018B RID: 395
		// (get) Token: 0x060008C6 RID: 2246 RVA: 0x00302775 File Offset: 0x00300975
		// (set) Token: 0x060008C7 RID: 2247 RVA: 0x0030277D File Offset: 0x0030097D
		public virtual TObjectNameList UserList
		{
			get
			{
				return this.userList;
			}
			set
			{
				this.userList = value;
			}
		}

		// Token: 0x060008C8 RID: 2248 RVA: 0x00302786 File Offset: 0x00300986
		public TRedshiftCreateGroup(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstredshiftCreateGroup;
		}

		// Token: 0x060008C9 RID: 2249 RVA: 0x0030279C File Offset: 0x0030099C
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.groupName = (TObjectName)tdummy.node1;
			this.userList = (TObjectNameList)tdummy.list1;
			return 0;
		}

		// Token: 0x060008CA RID: 2250 RVA: 0x003027EA File Offset: 0x003009EA
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x060008CB RID: 2251 RVA: 0x003027FA File Offset: 0x003009FA
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0400122A RID: 4650
		private TObjectName groupName;

		// Token: 0x0400122B RID: 4651
		private TObjectNameList userList;
	}
}
